<?php
class Picture extends AppModel{
	var $name = 'Picture';
	var $useTable = 'pictures';
	var $primaryKey = 'id';

	function get($kind) {
		return $this->find('all', array(
			'conditions' => array(
				'kind'  => $kind
			),
			'order' => 'date desc',
			'cache' => 'picture'. $kind
		));
	}
       
}
?>
